﻿using System;
using System.Collections.Generic;
using System.IO;
using MediaBrowserSL.RIA.MediaBrowserServiceReference;

namespace MediaBrowserSL.RIA.Services
{
    public interface IMediaRiaServices
    {
        void GetListMediasByCategory(Action<IEnumerable<Media>, Exception> getMediasCallback, int idUser, int idCategory);
        void CreateMedia(Action<Media, Exception> createMediaCallback, Media m, User u, FileInfo imageMedia, FileInfo contentMedia);
        void UpdateMedia(Action<Exception> updateMediaCallback, Media m);
        void DeleteMedia(Action<Exception> deleteMediaCallback, Media m, User u);
        void CreateMediaItem(Action<Media, Exception> createMediaItemCallback, Media mediaItem, Media mediaParent, User u, FileInfo imageMedia, FileInfo contentMedia);
        void GenerateImagesFromPdfBook(Action<IEnumerable<String>, Exception> generateImagesFromPdfBookCallback, String urlPdfBook, User u);
        void GetSize(Action<Dictionary<int, double>, Exception> updateGetSizeCallback, User user);
    }
}
